package com.xtourms.server.db;

// Generated 2011-4-17 16:04:01 by Hibernate Tools 3.2.4.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Room generated by hbm2java
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "room", catalog = "xtourms")
public class Room implements java.io.Serializable {

	private Integer roomId;
	private Hotel hotel;
	private String roomStyle;
	private Date roomEndDate;
	private Date roomStartDate;
	private int roomBasePrice;
	private int roomSellPrice;
	private int roomActualPrice;
	private String roomBreakfast;
	private String roomDes;
	private int lastmodifyWorker;
	private Date lastmodifyTime;

	public Room() {
	}

	public Room(Hotel hotel, String roomStyle, Date roomEndDate,
			Date roomStartDate, int roomBasePrice, int roomSellPrice,
			int roomActualPrice, String roomBreakfast, String roomDes,
			int lastmodifyWorker, Date lastmodifyTime) {
		this.hotel = hotel;
		this.roomStyle = roomStyle;
		this.roomEndDate = roomEndDate;
		this.roomStartDate = roomStartDate;
		this.roomBasePrice = roomBasePrice;
		this.roomSellPrice = roomSellPrice;
		this.roomActualPrice = roomActualPrice;
		this.roomBreakfast = roomBreakfast;
		this.roomDes = roomDes;
		this.lastmodifyWorker = lastmodifyWorker;
		this.lastmodifyTime = lastmodifyTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ROOM_ID", unique = true, nullable = false)
	public Integer getRoomId() {
		return this.roomId;
	}

	public void setRoomId(Integer roomId) {
		this.roomId = roomId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "HOTEL_ID", nullable = false)
	public Hotel getHotel() {
		return this.hotel;
	}

	public void setHotel(Hotel hotel) {
		this.hotel = hotel;
	}

	@Column(name = "ROOM_STYLE", nullable = false, length = 4)
	public String getRoomStyle() {
		return this.roomStyle;
	}

	public void setRoomStyle(String roomStyle) {
		this.roomStyle = roomStyle;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ROOM_END_DATE", nullable = false, length = 10)
	public Date getRoomEndDate() {
		return this.roomEndDate;
	}

	public void setRoomEndDate(Date roomEndDate) {
		this.roomEndDate = roomEndDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ROOM_START_DATE", nullable = false, length = 10)
	public Date getRoomStartDate() {
		return this.roomStartDate;
	}

	public void setRoomStartDate(Date roomStartDate) {
		this.roomStartDate = roomStartDate;
	}

	@Column(name = "ROOM_BASE_PRICE", nullable = false)
	public int getRoomBasePrice() {
		return this.roomBasePrice;
	}

	public void setRoomBasePrice(int roomBasePrice) {
		this.roomBasePrice = roomBasePrice;
	}

	@Column(name = "ROOM_SELL_PRICE", nullable = false)
	public int getRoomSellPrice() {
		return this.roomSellPrice;
	}

	public void setRoomSellPrice(int roomSellPrice) {
		this.roomSellPrice = roomSellPrice;
	}

	@Column(name = "ROOM_ACTUAL_PRICE", nullable = false)
	public int getRoomActualPrice() {
		return this.roomActualPrice;
	}

	public void setRoomActualPrice(int roomActualPrice) {
		this.roomActualPrice = roomActualPrice;
	}

	@Column(name = "ROOM_BREAKFAST", nullable = false, length = 3)
	public String getRoomBreakfast() {
		return this.roomBreakfast;
	}

	public void setRoomBreakfast(String roomBreakfast) {
		this.roomBreakfast = roomBreakfast;
	}

	@Column(name = "ROOM_DES", nullable = false, length = 65535)
	public String getRoomDes() {
		return this.roomDes;
	}

	public void setRoomDes(String roomDes) {
		this.roomDes = roomDes;
	}

	@Column(name = "LASTMODIFY_WORKER", nullable = false)
	public int getLastmodifyWorker() {
		return this.lastmodifyWorker;
	}

	public void setLastmodifyWorker(int lastmodifyWorker) {
		this.lastmodifyWorker = lastmodifyWorker;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LASTMODIFY_TIME", length = 19)
	public Date getLastmodifyTime() {
		return this.lastmodifyTime;
	}

	public void setLastmodifyTime(Date lastmodifyTime) {
		this.lastmodifyTime = lastmodifyTime;
	}

}
